<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8" >
    <title>Title</title>
</head>
<body>

    <span th:text="Hello"></span>
    <hr/>
    <span th:text="${msg}"></span>

    <hr/>
    <span th:text="${#dates.format(key,'yyyy-MM-dd HH:mm:ss')}"></span>

</body>
</html>